Public Class frmNewComputerGroup

    Private Sub btnNewGroupOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNewGroupOk.Click
        If Me.Text = "New Group" Then
            frmMain.net.adminNewGroup(txtNewGroupName.Text, txtNewGroupDesc.Text, frmMain.treeComputers.SelectedNode.Tag, frmMain.treeComputers)
        ElseIf Me.Text = "Edit Group" Then
            frmMain.net.adminEditGroup(txtNewGroupName.Text, txtNewGroupDesc.Text, frmMain.treeComputers.SelectedNode.Tag, frmMain.treeComputers)
        End If
        Me.Close()
    End Sub
End Class